interface ParamsType {
    data: AnswerType[],
    delId: string,
}

interface AnswerType {
    id: string,
    name: string,
}

export default (params: ParamsType) => params.data.filter(({id}) => id !== params.delId);